package com.ztc.ZtcRouteSite.bean;
import com.aqgj.util.BaseEntity;
import com.ztc.ZtcRoute.bean.ZtcRoute;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 站点
 */
@Entity
@Table(name = "ztc_route_site")
public class ZtcRouteSite implements BaseEntity{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;//ä¸»é”®

    private String name;//站点名

    private java.lang.Integer type;//类型：0-拼车，1-租车，2-包车，3-专车',
    private java.lang.Integer sequence;//顺序

    private String areaCity;//城市

    private String areaCode;//城市编码

    private String lat;//经纬度

    private ZtcRoute ztcRoute;//线路
    
    private String fkZtcRouteId;

	public void setSequence(java.lang.Integer sequence) {
		this.sequence = sequence;
	}
	public void setZtcRoute(ZtcRoute ztcRoute) {
		this.ztcRoute = ztcRoute;
	} 
	public void setFkZtcRouteId(String fkZtcRouteId) {
		this.fkZtcRouteId = fkZtcRouteId;
	}
	public void setId(String value){
        this.id = value;
    }
    public void setName(String value){
        this.name = value;
    }
    public void setType(java.lang.Integer value){
        this.type = value;
    }
    public void setAreaCity(String value){
        this.areaCity = value;
    }
    public void setAreaCode(String value){
        this.areaCode = value;
    }
    public void setLat(String value){
        this.lat = value;
    }
    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)
    public String getId(){
        return this.id;
    }
    @Column(name ="name",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getName(){
        return this.name;
    }
    @Column(name ="type",unique=false,nullable=true,insertable=true,updatable=true,length=4)
    public java.lang.Integer getType(){
        return this.type;
    }
    @Column(name ="sequence",unique=false,nullable=true,insertable=true,updatable=true,length=4)
    public java.lang.Integer getSequence() {
		return sequence;
	}
    @Column(name ="area_city",unique=false,nullable=true,insertable=true,updatable=true,length=13)
    public String getAreaCity(){
        return this.areaCity;
    }
    @Column(name ="area_code",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getAreaCode(){
        return this.areaCode;
    }
    @Column(name ="lat",unique=false,nullable=true,insertable=true,updatable=true,length=25)
    public String getLat(){
        return this.lat;
    }
    @Column(name ="fk_ztc_route_id",unique=false,nullable=false,insertable=true,updatable=true,length=32)
    public String getFkZtcRouteId() {
		return fkZtcRouteId;
	}
    @Transient
	public ZtcRoute getZtcRoute() {
		return ztcRoute;
	}  
} 
